//
//  JCHomeTitleButton.swift
//  SinaWeibo_18
//
//  Created by mac on 15/10/11.
//  Copyright © 2015年 cz. All rights reserved.
//

import UIKit

class JCHomeTitleButton: UIButton {

    override func layoutSubviews() {
        super.layoutSubviews()
        titleLabel!.x = 0
        imageView?.x = CGRectGetMaxX((titleLabel?.frame)!) + 5
    }
    override func sizeToFit() {
        super.sizeToFit()
        width = width + 5
    }
}
